package annotation;


public class ActionConfigBean {
	private Class<?> action;
	private Class<?> form;
	private String path;
	
	//{"path,url","path2,url2"}
	private String[] forwards;
	
	public String getUrl(String path) {
		for (String forward : forwards) {
			if(path.equals(forward.split(",")[0])){
				return forward.split(",")[1];
			}
		}
		return null;
	}
	
	public String[] getForwards() {
		return forwards;
	}
	public void setForwards(String[] forwards) {
		this.forwards = forwards;
	}
	public Class<?> getAction() {
		return action;
	}
	public void setAction(Class<?> action) {
		this.action = action;
	}
	public Class<?> getForm() {
		return form;
	}
	public void setForm(Class<?> form) {
		this.form = form;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
}
